import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:get/get.dart';

import '../core/routes/app_pages.dart';
import 'ati_bottom_bar.dart';

class AtiApp extends StatelessWidget {
  const AtiApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: const Size(375, 842), // 根据设计稿宽高
      minTextAdapt: true,
      splitScreenMode: true,
      child: GetMaterialApp(
        builder: FlutterSmartDialog.init(),
        title: 'Flutter Demo',
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
          tabBarTheme: TabBarThemeData(indicatorColor: Colors.transparent),
        ),
        home: AtiButtonBar(title: 'Flutter Demo Home Page'),
        getPages: AtiAppPages.routes,
      ),
    );
  }
}
